<?php

use yii\helpers\Html;
use common\models\articles\Articles;
    $tongzhi = Articles::find()->where(['category_id'=>18])->asArray()->limit(10)->all();
    $hangye = Articles::find()->where(['category_id'=>28])->asArray()->limit(10)->all();
    $xinwen = Articles::find()->where(['category_id'=>14])->asArray()->limit(10)->all();

/* @var $this yii\web\View */
/* @var $model common\models\meeting\Meetingenroll */
$controllerID = Yii::$app->controller->id;
$actionID = Yii::$app->controller->action->id;

$this->title = Yii::t('app', '填写信息');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '填写信息'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?= Html::cssFile('@web/css/enroll.css')?> 
<style>
    #edit {
        height: 27px;
        min-width: 34px;
        display: inline-block;
        background: url(../../Content/icon/edit.png) no-repeat;
        background-position: 10px 9px;
    }

    b.txtPayInfo {
        max-width: 550px;
        line-height: 20px;
    }

        b.txtPayInfo p {
            padding-left: 0 !important;
        }
</style>
<div class="design_form">
        <div class="form_Pontent">
            <section class="buju">
                <header class="header">确认报名</header>
                <!--报名人员信息-->
                <div class="div_box">
                    <h1 class="h1_header">
                        <span class="sp_left">报名信息</span>
                        <span class="sp_right"><?php if($setinfo['ac_cost']!=0) {  echo $setinfo['ac_cost']?>  <?php } ?></span>
                    </h1>
                    <?php foreach($list as $key=>$vo){ ?>
                    <p class="p_txt">
                        <span class="sp_left" title="<?= $vo['name'] ?>"><?= $vo['name'] ?></span>
                        <span class="sp_right" title="<?= $vo['value'] ?>"><?= $vo['value'] ?></span>
                    </p>
                    <?php } ?>
                </div>
                <?php if($setinfo['ac_cost']!=0) {?>
                    <div class="div_box">
                        <h1 class="h1_header" style="margin-top:40px;">
                        <span class="sp_left">支付信息</span>
                        <span class="sp_right">￥  10</span>
                        </h1>
                        <p class="p_txt xuxian">
                        <span class="sp_left">待支付金额</span>
                        <span class="sp_right colorRed">￥  10</span>
                        </p>
                        <div id="paySelect">
                            <p class="p_txt">
                                <span class="sp_left">支付方式</span>
                            </p>
                            <div style="width: 95%; display: table; margin: 0 auto;">
                                        <label class="pay_lab"><input type="radio" name="pay" id="AliPay" value="1"><img src="/Content/m/Enroll/Alipay.png"><span>支付宝</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                           <p>点击“确认提交”，将前往支付平台进行在线支付操作。</p> <p>*多种支付方式，轻松解决支付问题*</p>*为确保您的隐私安全，请尽量避免在网吧等公共场所进行支付*
                                        </div>
                                        <label class="pay_lab"><input type="radio" name="pay" id="WeChat" value="4"><img src="/Content/m/Enroll/WeChat.png"><span>微信支付</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                            点击“确认提交”，然后使用手机微信扫描屏幕上出现的二维码进行支付。
                                        </div>
                                        <label class="pay_lab"><input type="radio" name="pay" value="10"><span>现场支付</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                            请持报名成功的电子凭证（报名确认邮件或确认短信）前往现场缴费处缴费。
                                        </div>
                                        <label class="pay_lab"><input type="radio" name="pay" value="13"><span>银行转账</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                            <p>请注意页面的银行转账信息。</p>转账完成后请组织者联系。组织者确认您的付款后，将以电子邮件或短信的形式给您发送确认通知。
                                        </div>
                                    <label class="pay_lab"><input type="radio" name="pay" value="0"><span>稍后支付</span></label>
                                <!--
                                    <label class="pay_lab banks" style="display: none">
                                            <ol style="width: 615px; display: inline-block;">


                                            </ol>

                                    </label>
                                    -->
                            </div>
                            <p></p>
                            <div style="width: 95%; display: table; margin: 0 auto;">
                                        <label class="pay_lab"><input type="radio" name="pay" id="AliPay" value="1"><img src="/Content/m/Enroll/Alipay.png"><span>支付宝</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                           <p>点击“确认提交”，将前往支付平台进行在线支付操作。</p> <p>*多种支付方式，轻松解决支付问题*</p>*为确保您的隐私安全，请尽量避免在网吧等公共场所进行支付*
                                        </div>
                                        <label class="pay_lab"><input type="radio" name="pay" id="WeChat" value="4"><img src="/Content/m/Enroll/WeChat.png"><span>微信支付</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                            点击“确认提交”，然后使用手机微信扫描屏幕上出现的二维码进行支付。
                                        </div>
                                        <label class="pay_lab"><input type="radio" name="pay" value="10"><span>现场支付</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                            请持报名成功的电子凭证（报名确认邮件或确认短信）前往现场缴费处缴费。
                                        </div>
                                        <label class="pay_lab"><input type="radio" name="pay" value="13"><span>银行转账</span></label>
                                        <div class="pay_miaoshu" style="display: none;">
                                            <p>请注意页面的银行转账信息。</p>转账完成后请组织者联系。组织者确认您的付款后，将以电子邮件或短信的形式给您发送确认通知。
                                        </div>
                                    <label class="pay_lab"><input type="radio" name="pay" value="0"><span>稍后支付</span></label>
                                <!--
                                    <label class="pay_lab banks" style="display: none">
                                            <ol style="width: 615px; display: inline-block;">


                                            </ol>

                                    </label>
                                    -->
                        </div>
                        <p></p>
                        </div>
                    </div>
                    <?php } ?>
            </section>
            <form id="comfirmForm" method="POST" action="<?= yii\helpers\Url::to(['meetingenroll/bmsuccess']);?>" >
            <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
            <input name="ac_id" value="<?= $setinfo['ac_id'] ?>" type="hidden">
            <input name="bd_id" value="<?= $bd_id ?>" type="hidden">
            <input name="status" value="1" type="hidden">
            <div class="page_footer" style="position: fixed;">
                <input type="submit" class="input-btn login" value="确认提交" >
                <footer class="foot-white">Powered by www.zhongkefu.com</footer>
            </div>
            </form>
        </div>
</div>
<script>
        $(function(){
            $(".login").click(function(){
                $("#comfirmForm").submit();
            })
        })
</script>        